{{extend './base.html'}}
{{block 'titleBlock'}}分类页面{{/block}}
{{block 'scriptBlock'}}{{/block}}
{{block 'contentBlock'}}
<div class="container">
    <div class="show_left">
        <div class="classify">
            <p data-classid="{{classifyId.classify_id}}">{{classifyId.classify_name}}</p>
        </div>
        <div class="show_list">
            <div class="list_sort">
                <p>排序方式：</p>
                <button  data-cid="1">最新</button>
                <button  data-cid="2">价格</button>
                <button  data-cid="3">销量</button>
            </div>
            <div class="list_ul">
                <ul class="list_con">
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                    <li>
                        <a href="">
                            <img src="/images/login.jpg" alt="">
                            <p>可乐</p>
                            <span>￥2.5</span>
                        </a>
                    </li>
                </ul>
            </div>
        </div>
    </div>
    <div class="show_right">
        <ul>
            <li>销量排行</li>
            {{each salesOrder}}
            <li>
                <span class="rank_{{$index+1}}">{{$index+1}}</span>
                <a href="/commodity_detail/{{$value.commodity_id}}">{{$value.commodity_name}}</a>
            </li>
            {{/each}}
        </ul>
    </div>
</div>
{{/block}}